﻿@model List<TN_CMS.Domain.Entities.SysFeature>

<div id="left-menu-container">
    <div id="left-menu">
        @foreach (var item in Model)
        {
            if (item.IsDisplayOnNav && item.IsActive)
            {
                if (item.Childrens != null && item.Childrens.Count > 0)
                {
                    <h3>@item.Name</h3>
                    <ul class="jquery-ui-menu">
                    @foreach (var childItem in item.Childrens)
                    {
                        if (childItem.IsDisplayOnNav && item.IsActive)
                        {
                        <li>
                            <a href="@childItem.Link" title="@childItem.Title">@childItem.Name</a>
                        </li>
                        }
                    }
                    </ul>
                }
            }
        }
    </div>
</div>